function elfShow(sElf)
{
	if (document.getElementById(sElf) != null) {
		document.getElementById(sElf).style.display = '';
	}
}

function elfHide(sElf)
{
	if (document.getElementById(sElf) != null) {
		document.getElementById(sElf).style.display = 'none';
	}
}

function elfToggle(sElf)
{
	oStyle = document.getElementById(sElf).style;
	if (oStyle.display == 'none')
	{
		elfShow(sElf);
	}
	else
	{
		elfHide(sElf);
	}
}

function layerShow(sLayer)
{
	document.getElementById(sLayer).style.visibility = 'visible';
}

function layerHide(sLayer)
{
	document.getElementById(sLayer).style.visibility = 'hidden';
}

function layerToggle(sLayer)
{
	oStyle = document.getElementById(sLayer).style;
	if (oStyle.visibility == 'hidden')
	{
		layerShow(sLayer);
	}
	else
	{
		layerHide(sLayer);
	}
}
